Edit Text File (vim)
Edit Text File (vim)
Insert Text
i: Insert text before the selected texta: Insert text after the selected texto: Insert text on a new line
Select Text
v: Select a single characterCtrl + v: Select text verticallyShift + v: Select text horizontally
Copy and Paste
y: Copy a liney{n}y: Copynlinesp: Paste
Undo / Redo
u: UndoCtrl + r: Redo
Save and Exit
- Save:
ESC→:→w - Exit:
ESC→:→q - Save and Exit:
ESC→:→wq - Force Exit:
ESC→:→q!